#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.device.feign.service;


import ${package}.device.feign.entity.DeviceBaseDTO;
import ${package}.device.feign.service.failback.GateWayFeignServiceHystrix;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @version: 1.00.00
 * @description: IOT3.feign调用分组组件Service
 * @copyright: Copyright (c) 2020 立林科技 All Rights Reserved
 * @company: 厦门立林科技有限公司
 * @author: youxiaojuan
 * @date: 2020年3月11日15:55:46
 */
@FeignClient(value = "${symbol_dollar}{feign.service-id.iot-gateway:iot-gateway}", fallbackFactory = GateWayFeignServiceHystrix.class)
@ConditionalOnProperty(prefix = "spring.cloud.openfeign", name = "enabled", havingValue = "true")
public interface GateWayFeignService {




    /**
     * 获取住家下的设备（did,directDid）
     * @param groupId
     * @return
     */
    @PostMapping("/rest/iotgw/in/cache/getGroupDeviceBase")
    List<DeviceBaseDTO> getGroupDeviceBase(@RequestParam("groupId") Long groupId);

}
